<?php

namespace LowCode\Traits\Slots;

use LowCode\Node;

/**
 * 设置 slot action 内容
 */
trait HasSlotAction
{
    /**
     * 设置 slot action 内容
     * @param Node $node
     * @return $this
     */
    public function slotAction(Node $node): static
    {
        return $this->addSlot($node,"action");
    }
}
